/*
 * SPDX-FileCopyrightText: © 2021 Olivier Meunier <olivier@neokraft.net>
 *
 * SPDX-License-Identifier: AGPL-3.0-only
 */

@layer components
  .btn
    @apply inline-block p-2 leading-tight whitespace-nowrap border cursor-pointer
    @apply bg-btn-default border-btn-default text-btn-default-text
    @apply transition-colors duration-200
    @apply hf:bg-btn-default-hover hf:border-btn-default-hover

  .btn-primary
    @apply btn rounded
    @apply bg-btn-primary border-btn-primary
    @apply text-btn-primary-text
    @apply hf:text-btn-primary-text hf:bg-btn-primary-hover hf:border-btn-primary-hover

  .btn-danger
    @apply btn rounded
    @apply bg-btn-danger border-btn-danger
    @apply text-btn-danger-text
    @apply hf:text-btn-danger-text hf:bg-btn-danger-hover hf:border-btn-danger-hover

  .btn-outlined
    @apply btn
    @apply bg-transparent border-btn-default
    @apply text-btn-default
    @apply hf:bg-btn-default hf:text-btn-default-text hf:border-btn-default

  .btn-outlined-primary
    @apply btn
    @apply bg-transparent border-btn-primary
    @apply text-btn-primary
    @apply hf:bg-btn-primary hf:text-btn-primary-text hf:border-btn-primary

  .btn-outlined-danger
    @apply btn
    @apply bg-transparent border-btn-danger
    @apply text-btn-danger
    @apply hf:bg-btn-danger hf:text-btn-danger-text hf:border-btn-danger
